home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PD Collection CD 1
/
PD Collection CD 1.iso
/
programer2
/
pari2
/
pari
/
other
/
Makefile_r
< prev
next >
Wrap
Makefile
|
1991-10-09
|
3KB
|
139 lines
# General Makefile UNIX gp versions
# Change these installation directories to suit your needs
LIBDIR = /usr/local/lib
BINDIR = /usr/local/bin
INCLUDEDIR = /usr/include/pari-include
CC = gcc
# if you use CC=gcc, you must add -traditional in the compilation options
# of plot.o. You can also (if you want to debug gp yourself) add the -g
# option in CFLAGS. However, remember that, while gcc accepts -g and -O
# simultaneously, cc does not.
CFLAGS = -g -O -c
OBJS=mp.o anal.o alglin1.o alglin2.o base.o arith1.o arith2.o bibli1.o bibli2.o elliptic.o es.o gen1.o gen2.o gen3.o init.o errmessages.o helpmessages.o polarit1.o polarit2.o trans1.o trans2.o trans3.o version.o
# Be sure to "make clean" before doing a
# make on a different architecture
all: genpari.h gp
genpari.h: genpari68k.h
rm -f genpari.h;ln -s genpari68k.h genpari.h;
gp: gp.o $(OBJS) plot.o genpari.h
$(CC) -O -o gp gp.o $(OBJS) plot.o -lm -lsuntool -lsunwindow -lpixrect -lreadline -ltermcap
# if you are using XWindows rather than suntools, you should link
# link plot.c to plot.X rather than plot.sun below, and replace the line above by
# cc -O -o gp gp.o $(OBJS) plot.o -lm -lX11
mp.o: mp.s
$(CC) $(CFLAGS) mp.s
gp.o: gp.c
$(CC) $(CFLAGS) gp.c
alglin1.o: alglin1.c
$(CC) $(CFLAGS) alglin1.c
alglin2.o: alglin2.c
$(CC) $(CFLAGS) alglin2.c
anal.o: anal.c
$(CC) $(CFLAGS) anal.c
arith1.o: arith1.c
$(CC) $(CFLAGS) arith1.c
arith2.o: arith2.c
$(CC) $(CFLAGS) arith2.c
base.o: base.c
$(CC) $(CFLAGS) base.c
bibli1.o: bibli1.c
$(CC) $(CFLAGS) bibli1.c
bibli2.o: bibli2.c
$(CC) $(CFLAGS) bibli2.c
elliptic.o: elliptic.c
$(CC) $(CFLAGS) elliptic.c
es.o: es.c
$(CC) $(CFLAGS) es.c
gen1.o: gen1.c
$(CC) $(CFLAGS) gen1.c
gen2.o: gen2.c
$(CC) $(CFLAGS) gen2.c
gen3.o: gen3.c
$(CC) $(CFLAGS) gen3.c
init.o: init.c
$(CC) $(CFLAGS) init.c
errmessages.o: errmessages.c
$(CC) $(CFLAGS) errmessages.c
helpmessages.o: helpmessages.c
$(CC) $(CFLAGS) helpmessages.c
plot.c: plot.sun
rm -f plot.c;ln -s plot.sun plot.c
# if you are using XWindows, replace plot.sun by plot.X in the two lines above
plot.o: plot.c
$(CC) -traditional $(CFLAGS) plot.c
plotdummy.o: plotdummy.c
$(CC) $(CFLAGS) plotdummy.c
polarit1.o: polarit1.c
$(CC) $(CFLAGS) polarit1.c
polarit2.o: polarit2.c
$(CC) $(CFLAGS) polarit2.c
trans1.o: trans1.c
$(CC) $(CFLAGS) trans1.c
trans2.o: trans2.c
$(CC) $(CFLAGS) trans2.c
trans3.o: trans3.c
$(CC) $(CFLAGS) trans3.c
version.o: version68k.c
$(CC) $(CFLAGS) -o version.o version68k.c
manual: tex/users.tex tex/index.tex
(cd tex;tex users;\
rm -f users.std;sort -f users.idx > users.std;\
tex index;rm -f users.idx)
install: plotdummy.o
install genpari.h $(INCLUDEDIR)
install gencom.h $(INCLUDEDIR)
install gen68k.h $(INCLUDEDIR)
install erreurs.h $(INCLUDEDIR)
ar r libpari.a $(OBJS) plotdummy.o
install -c libpari.a $(LIBDIR)
ranlib $(LIBDIR)/libpari.a
install gp $(BINDIR)
strip $(BINDIR)/gp
clean:
-\rm *.o libpari.a gp genpari.h *.log *.dvi *.std *.idx *.toc; \
(cd tex;rm -f *.log *.dvi *.std *.idx *.toc)